package af.Class;

import java.sql.Connection;
import java.sql.DriverManager;

public class ConexionBD {

	
	  public Connection getConection() {
	        Connection cn = null;

	        try {
	            Class.forName("com.mysql.jdbc.Driver").newInstance();
	            cn = DriverManager.getConnection("jdbc:mysql://localhost/activo_fijo", "root", "");
	        } catch (Exception e) {
	            e.printStackTrace();
	        }


	        return cn;
	    }
	
}
